# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=mkdocs
pkgver=1.5.3
pkgrel=2
pkgdesc="Project documentation with Markdown"
url="https://www.mkdocs.org"
arch="noarch"
license="BSD-2-Clause"
depends="
	py3-click
	py3-ghp-import
	py3-jinja2
	py3-markdown
	py3-markupsafe
	py3-mergedeep
	py3-packaging
	py3-pathspec
	py3-platformdirs
	py3-pyyaml-env-tag
	py3-watchdog
	py3-yaml
	python3
	"
makedepends="py3-hatchling py3-gpep517 py3-installer py3-babel py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mkdocs/mkdocs/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests.

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/mkdocs*.whl
}

sha512sums="
3f7d0af4b071ac6998e82cefb18df27f1cc98d91c7902d2943acdaa08c56f90e36c1c5d1df1c1f61a1c50d8fecc2fb0014497f2436be89d52b17959808c31abc  mkdocs-1.5.3.tar.gz
"
